package com.fastplatform.entity;

import jakarta.persistence.*;
import lombok.Data;
import lombok.Builder;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;

@Entity
@Table(name = "sys_role")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Role extends BaseEntity {
    
    @Column(name = "role_code", nullable = false)
    private String roleCode;
    
    @Column(name = "role_name", nullable = false)
    private String roleName;
    
    @Column(name = "description")
    private String description;
    
    @Column(name = "status")
    @Builder.Default
    private Integer status = 1; // 1:启用 0:禁用
    
    @Column(name = "sort_order")
    @Builder.Default
    private Integer sortOrder = 0;
} 